package com.jack.lib.net

import com.jack.lib.Constant

/**
 * author : chong.huang
 * create : 2022/3/17
 * desc   : 
 */
object ApiManager {

    val api by lazy { JNetManager.createService(ApiService::class.java, object : INet {
        override fun baseUrl(): String = Constant.host.toString()

        override fun headers(url: String): Map<String, String?> = mapOf("token" to Constant.token)

        override fun enableMock(): Boolean = false

        override fun connectTimeout(): Long = 20_000

        override fun readTimeout(): Long = 20_000

        override fun writeTimeout(): Long = 20_000

    }) }
}